<?php
$this->breadcrumbs=array(
	'Thay đổi mật khẩu',
);
?><?php $this->widget('bootstrap.widgets.TbAlert', array(        'block'=>true, // display a larger alert block?        'fade'=>true, // use transitions?        'closeText'=>'&times;', // close link text - if set to false, no close link is displayed        'alerts'=>array( // configurations per alert type            'success'=>array('block'=>true, 'fade'=>true, 'closeText'=>'&times;'), // success, info, warning, error or danger			 'error'=>array('block'=>true, 'fade'=>true, 'closeText'=>'&times;'),        ),    )); ?>    
<div class="form" style="width: 500px; margin:auto;">

<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm', array(
	'id'=>'user-form',
	//'enableAjaxValidation'=>true,
	'enableClientValidation'=>true,
)); ?>
<div class="right-box-item">
<h1>Thay đổi mật khẩu</h1>
<div style="margin:20px">
	<div class="row">
		<?php echo $form->labelEx($model,'oldpassword'); ?>
		<?php echo $form->passwordField($model,'oldpassword',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'oldpassword'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'password'); ?>
		<?php echo $form->passwordField($model,'password',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'password'); ?>
	</div>
	
	<div class="row">
		<?php echo $form->labelEx($model,'confirm'); ?>
		<?php echo $form->passwordField($model,'confirm',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'confirm'); ?>
	</div>

<p class="note">Thông tin bắt buộc <span class="required">*</span></p>

	<div class="row buttons">
		<?php $this->widget('bootstrap.widgets.TbButton', array('buttonType'=>'submit', 'label'=>'Đồng ý', 'type'=>'inverse','htmlOptions'=>array('id'=>'submit'))); ?>
	</div>

<?php $this->endWidget(); ?>
</div></div>
</div><!-- form -->